Version

ApplyCharacterSettings(DocumentSpan[],CharacterSettings,String) Method

Applies any non-null settings in the specified settings object to text in the specified spans.
Syntax
'Declaration
 
Public Overloads Sub ApplyCharacterSettings( _
   ByVal spans() As DocumentSpan, _
   ByVal settings As CharacterSettings, _
   ByRef error As String _
) 
public void ApplyCharacterSettings( 
   DocumentSpan[] spans,
   CharacterSettings settings,
   out string error
)

Parameters

spans
Document spans to apply the changes to.
settings
CharacterSettings object that contains the settings to apply. Only properties of the object with non-null values will be applied.
error
If an error occurs, this will be set to an error message.
Remarks

ApplyCharacterSettings method applies settings across multiple runs that are contained by the specified spans. If a run partially spans a document span then the run will be broken up as necessary so that only the content that's contained by the span is applied the specified settings.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also